package com.learn.proxy;

import java.util.Objects;

/**
 * <p>项目名称: design-pattern </p>
 *
 * <p>文件名称: Data </p>
 *
 * <p>描述: 使用的数据 </p>
 *
 * data
 */
public class Data {

    private String detail;

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Data data = (Data) o;
        return Objects.equals(detail, data.detail);
    }

    @Override
    public int hashCode() {
        return Objects.hash(detail);
    }

    @Override
    public String toString() {
        return "Data{" +
                "detail='" + detail + '\'' +
                '}';
    }
}
